LassoScript Utility
Basics Browse Detail

[Date->Year]

Tag Link [Date->Year] Category Date
Type Member Source Available No
Support Preferred Version 6.0
Change Unchanged Data Source Any
Output Type Integer Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Description

[Date->Year] returns a four-digit integer representing the year for a specified Lasso date cast using the [Date] tag.

Syntax

[(Date)->Year]
[(Date)->(Year: -Days)]

Parameters

Optional Parameters
-Days Returns the integer number of days in the year (e.g. 365).

Examples

To return the year from a Lasso date:

The following example returns the year from the Lasso date 8/29/2002 12:30:00.

[(Date:'8/29/2002 12:30:00')->Year]

2002